<?php

declare(strict_types=1);

namespace App\Command;

use Hyperf\Command\Annotation\Command;
use Hyperf\Command\Command as HyperfCommand;
use Psr\Container\ContainerInterface;

/**
 * @Command
 */
#[Command]
class Test extends HyperfCommand {
    /**
     * @var ContainerInterface
     */
    protected $container;

    public function __construct(ContainerInterface $container) {
        $this->container = $container;

        parent::__construct('apiadmin:test');
    }

    public function configure() {
        parent::configure();
        $this->setDescription('测试脚本');
    }

    public function handle() {
        echo '----';
    }
}
